﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>高拍仪测试工具</title>
    <script type="text/javascript" src="../ocx/HighMeter.js"></script>
</head>
<div>
    <input type="button"
           style="color:white;
       width:100px;
       height:50px;
       background-color:#6495ed"
           value="启动预览"
           onclick="startPreviewByHigh()"/>

    <input type="button"
           style="color:white;
       width:100px;
       height:50px;
       background-color:#6495ed"
           value="拍照"
           onclick="takePhotoByHigh()"/>

    <input type="button"
           style="color:white;
       width:100px;
       height:50px;
       background-color:#6495ed"
           value="停止调用"
           onclick="stopPreviewByHigh()"/>
</div>
<div>
    <input id="result"
           type="text"
           style="width:90%;height:50px;
           margin-top:30px;
           margin-right:50px"
           readonly="readonly"/>
</div>
<div>
    <object
            id="ggcom"
            name="ggcom"
            classid="CLSID:5026E632-AE63-4094-8981-9CE9EE9EA003"/>
    </object>
</div>

<script>
    function startPreviewByHigh() {
        var ret = startPreviewByHighMeter()
        document.getElementById("result").value = ret;
    }

    function takePhotoByHigh() {
        var ret = takePhotoByHighMeter()
        document.getElementById("result").value = ret;
    }

    function stopPreviewByHigh() {
        var ret = stopPreviewByHighMeter()
        document.getElementById("result").value = ret;
    }
</script>
</html>